//---------------------------------------------------------------------------

#ifndef SegmentH
#define SegmentH


#include "GLPoint.h"

//---------------------------------------------------------------------------

class Segment {
private:
        GLPoint p1;
        GLPoint p2;
public:
        Segment();
        Segment(GLPoint p1, GLPoint p2);
        GLPoint getP1();
        GLPoint getP2();
        void setP1(GLPoint p1);
        bool select(float x, float y);
        void setP2(GLPoint p2);
        bool containsPoint(GLPoint p, float distance);
};
#endif
